<template>
  <div>
    <p>欢迎您！！！</p>
    <div class="animation">
      <img src="@/assets/bqb.jpeg" alt="">
      <img src="@/assets/bqb.jpeg" alt="">
      <img src="@/assets/bqb.jpeg" alt="">
      <img src="@/assets/bqb.jpeg" alt="">
      <img src="@/assets/bqb.jpeg" alt="">
      <img src="@/assets/bqb.jpeg" alt="">
    </div>
  </div>
</template>

<script>
export default {
  name: 'Welcome'
}
</script>

<style lang="less" scoped>
body {
  perspective: 700px;
}
.animation {
  position: relative;
  bottom: -467px;
  right: -637px;
  width: 160px;
  height: 160px;
  transform-style: preserve-3d;
  animation: move 8s linear infinite;
  img {
    position: absolute;
    top: 0;
    left: 0;
    width: 150px;
  }
}
.animation:hover {
  animation-play-state: paused;
}
@keyframes move {
  0% {
    transform: rotateY(0);
  }
  100% {
    transform: rotateY(360deg);
  }
}
.animation img:nth-of-type(1) {
  transform: rotateY(0) translateZ(160px);
}
.animation img:nth-of-type(2) {
  transform: rotateY(60deg) translateZ(160px);
}
.animation img:nth-of-type(3) {
  transform: rotateY(120deg) translateZ(160px);
}
.animation img:nth-of-type(4) {
  transform: rotateY(180deg) translateZ(160px);
}
.animation img:nth-of-type(5) {
  transform: rotateY(240deg) translateZ(160px);
}
.animation img:nth-of-type(6) {
  transform: rotateY(300deg) translateZ(160px);
}
</style>